﻿using SHZY.Common.Const;
using SqlSugar;

namespace SHZY.system.Entitys;

/// <summary>
/// 采购订单明细表实体.
/// </summary>
[SugarTable("test_purchase_form_order","采购订单明细表")]
[Tenant(ClaimConst.TENANTID)]
public class TestPurchaseFormOrderEntity
{
    /// <summary>
    /// 主键.
    /// </summary>
    [SugarColumn(ColumnName = "F_Id",ColumnDescription = "主键", IsPrimaryKey = true)]
    public string Id { get; set; }

    /// <summary>
    /// 主表主键.
    /// </summary>
    [SugarColumn(ColumnName = "F_Purchase_id",ColumnDescription = "主表主键")]
    public string PurchaseId { get; set; }

    /// <summary>
    /// 产品.
    /// </summary>
    [SugarColumn(ColumnName = "F_Product",ColumnDescription = "产品")]
    public string Product { get; set; }

    /// <summary>
    /// 产品名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_Product_name_2",ColumnDescription = "产品名称")]
    public string ProductName2 { get; set; }

    /// <summary>
    /// 产品编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_Product_code",ColumnDescription = "产品编码")]
    public string ProductCode { get; set; }

    /// <summary>
    /// 产品分类.
    /// </summary>
    [SugarColumn(ColumnName = "F_Product_Category",ColumnDescription = "产品分类")]
    public string ProductCategory { get; set; }

    /// <summary>
    /// 规格.
    /// </summary>
    [SugarColumn(ColumnName = "F_Specifications",ColumnDescription = "规格")]
    public string Specifications { get; set; }

    /// <summary>
    /// 单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit",ColumnDescription = "单位")]
    public decimal Unit { get; set; }

    /// <summary>
    /// 单价.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unitprice",ColumnDescription = "单价")]
    public decimal Unitprice { get; set; }

    /// <summary>
    /// 折扣（%）.
    /// </summary>
    [SugarColumn(ColumnName = "F_Discount",ColumnDescription = "折扣（%）")]
    public decimal Discount { get; set; }

    /// <summary>
    /// 实际单价（元）.
    /// </summary>
    [SugarColumn(ColumnName = "F_Actualunit_price_name",ColumnDescription = "实际单价（元）")]
    public decimal ActualunitPriceName { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Numbers",ColumnDescription = "数量")]
    public decimal Numbers { get; set; }

    /// <summary>
    /// 创建时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CreatorTime",ColumnDescription = "创建时间")]
    public DateTime? CreatorTime { get; set; }

    /// <summary>
    /// 创建用户.
    /// </summary>
    [SugarColumn(ColumnName = "F_CreatorUserId",ColumnDescription = "创建用户")]
    public string CreatorUserId { get; set; }

}